package com.yunduan.management.controller;


import com.yunduan.management.service.StudyAreaService;
import com.yunduan.management.utils.JsonObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author hy
 * @since 2020-11-27
 */
@RestController
@CrossOrigin
public class StudyAreaController {
    @Autowired
    private StudyAreaService studyAreaService;

    @GetMapping("/getAllStudyItem")
    public JsonObject getAllStudyItem() {
        return new JsonObject().success(studyAreaService.list());
    }
}

